<!DOCTYPE html>
<html lang="en">
<body>

<h2>欢迎页面</h2>
<#if admin??>
    欢迎您${admin.nikname}!<br>
    <a href="update_password.html">修改密码</a><br>
    <a href="addUser.html">注册用户</a> <br>
    <a href="admin.ftl">用户详情</a>  <br>
    <a href="logoutServlet">退出</a>  <br>
    <table style="width: 80%">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>性别</th>
        <th>电话</th>
        <th>积分</th>
    </tr>
    <#list userPageBean.records as user>
        <tr>
            <td>${user.id}</td>
            <td>${user.name}</td>
            <td><#if user.gender>男<#else >女</#if> </td>
            <td>${user.tel}</td>
            <td>${user.credits}</td>
        </tr>
    </#list>
        <tr>
            <td colspan="5" style="align: center;">
                <#list 1..userPageBean.pages as i>
                    <span style="margin-right: 23px;">${i} </span>
                </#list>
            </td>
        </tr>
    </table>
        </table>




<#else >
    <a href="login.ftl">登录</a>
</#if>

<#--<a href="updatePassword.html">修改密码</a>-->
<#--<a href="test.ftl">ceshi</a>-->


</body>
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
</html>